<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/6/24
 * Time: 23:39
 */

//E:\PHPSRC\git-src\PHPTEST\2017\06\24
echo getcwd().PHP_EOL;

//E:\PHPSRC\git-src\PHPTEST\2017\06\24
echo dirname(__FILE__).PHP_EOL;

//E:\PHPSRC\git-src\PHPTEST\2017\06\24\1.php
echo realpath(__FILE__).PHP_EOL;

//E:\PHPSRC\git-src\PHPTEST\2017\06\24\1.php
echo __FILE__;

//array(4) {
//	["dirname"]=>
//  string(36) "E:\PHPSRC\git-src\PHPTEST\2017\06\24"
//	["basename"]=>
//  string(5) "1.php"
//	["extension"]=>
//  string(3) "php"
//	["filename"]=>
//  string(1) "1"
//}
var_dump(pathinfo(__FILE__));